﻿@model MvcApplication5.Models.CommentModel

@{
    ViewBag.Title = "Comment";
    Layout = "~/Views/News/AdminLayout.cshtml";
}

<h2>Danh sách comment đã duyệt</h2>
<p>@Html.DropDownList("Category",new SelectList(Model.CategoryList, "CategoryId", "Name"),"-- tất cả --")</p>
@using(Html.BeginForm()){
<table border="1" class="comment-table">
    <tr>
        <td><input type="checkbox" /></td>
        <td>Người gửi</td>
        <td style="width:500px;">Nội dung</td>
        <td style="width:350px;">Trong bài viết</td>
        <td style="width:112px;">Ngày gửi</td>
    </tr>
    @foreach (var item in Model.CommentList)
    {
        <tr>
            <td><input type="checkbox" id="chkBox" name="chkBox" value="@item.CommentId"/></td>
            <td>@item.Name</td>
            <td style="font-size:11px;">@item.Content</td>
            <td>@item.News.Title</td>
            <td>@item.Date</td>
        </tr>
    }
</table>    
<div class="comment-command">
    <input type="submit" name="submitButton" value="Xóa comment đã chọn"/>     
</div>
}